package com.atmilan.quartz.model.dto.jst;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;

/**
 * 聚水潭
 * @author daigb
 * @date:  2022-02-28 13:45
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class JstProductResDTO {
    /**
     * 状态码
     */
    @JsonProperty(value = "code")
    private Integer code;
    
    /**
     * msg
     */
    @JsonProperty(value = "msg")
    private String msg;
    
    /**
     * result
     */
    @JsonProperty(value = "data")
    private Result data;
    
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Result {
        
        @JsonProperty(value = "page_size")
        private Integer pageSize;
        
        @JsonProperty(value = "page_index")
        private Integer pageIndex;
        
        @JsonProperty(value = "data_count")
        private Integer dataCount;
        
        @JsonProperty(value = "page_count")
        private Integer pageCount;
        
        @JsonProperty(value = "has_next")
        private Boolean hasNext;
        
        @JsonProperty(value = "datas")
        private List<DataResult> datas;
        
    }
    
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class DataResult {
        
        @JsonProperty(value = "i_id")
        private String iId;
        
        @JsonProperty(value = "item_type")
        private String itemType;
        
        @JsonProperty(value = "remark")
        private String remark;
        
        @JsonProperty(value = "pic")
        private String pic;
        
        @JsonProperty(value = "shelf_life")
        private String shelfLife;
        
        @JsonProperty(value = "s_price")
        private String sPrice;
        
        @JsonProperty(value = "c_id")
        private String cId;
        
        @JsonProperty(value = "modified")
        private String modified;
        
        @JsonProperty(value = "pics")
        private String pics;
        
        @JsonProperty(value = "brand")
        private String brand;
        
        @JsonProperty(value = "vc_name")
        private String vcName;
        
        @JsonProperty(value = "autoid")
        private String autoid;
        
        @JsonProperty(value = "storeage")
        private String storeage;
        
        @JsonProperty(value = "co_id")
        private String coId;
        
        @JsonProperty(value = "h")
        private String h;
        
        @JsonProperty(value = "c_price")
        private String cPrice;
        
        @JsonProperty(value = "weight")
        private String weight;
        
        @JsonProperty(value = "l")
        private String l;
        
        @JsonProperty(value = "w")
        private String w;
        
        @JsonProperty(value = "registration_certificate_no")
        private String registrationCertificateNo;
        
        @JsonProperty(value = "name")
        private String name;
        
        @JsonProperty(value = "market_price")
        private String marketPrice;
        
        @JsonProperty(value = "c_name")
        private String cName;
        
        @JsonProperty(value = "skus")
        private List<Sku> skus;
        
    }
    
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Sku {
    	
    	@JsonProperty(value = "i_id")
    	private String iId;
    	
    	@JsonProperty(value = "supplier_i_id")
    	private String supplierIId;
    	
    	@JsonProperty(value = "item_type")
    	private String itemType;
    	
    	@JsonProperty(value = "modifier")
    	private String modifier;
    	
    	@JsonProperty(value = "pic")
    	private String pic;
    	
    	@JsonProperty(value = "expiration_date")
    	private String expirationDate;
    	
    	@JsonProperty(value = "brand")
    	private String brand;
    	
    	@JsonProperty(value = "vc_name")
    	private String vcName;
    	
    	@JsonProperty(value = "productionbatch_format")
    	private String productionbatchFormat;
    	
    	@JsonProperty(value = "weight")
    	private String weight;
    	
    	@JsonProperty(value = "sku_id")
    	private String skuId;
    	
    	@JsonProperty(value = "labels")
    	private String labels;
    	
    	@JsonProperty(value = "volume")
    	private String volume;
    	
    	@JsonProperty(value = "shop_id")
    	private String shopId;
    	
    	@JsonProperty(value = "unit")
    	private String unit;
    	
    	@JsonProperty(value = "properties_value")
    	private String propertiesValue;
    	
    	@JsonProperty(value = "stock_disabled")
    	private String stockDisabled;
    	
    	@JsonProperty(value = "name")
    	private String name;
    	
    	@JsonProperty(value = "market_price")
    	private String marketPrice;
    	
    	@JsonProperty(value = "short_name")
    	private String shortName;
    	
    	@JsonProperty(value = "sku_code")
    	private String skuCode;
    	
    	@JsonProperty(value = "supplier_id")
    	private String supplierId;
    	
    	@JsonProperty(value = "modifier_name")
    	private String modifierName;
    	
    	@JsonProperty(value = "remark")
    	private String remark;
    	
    	@JsonProperty(value = "production_licence")
    	private String productionLicence;
    	
    	@JsonProperty(value = "hasBomMap")
    	private String hasBomMap;
    	
    	@JsonProperty(value = "pic_big")
    	private String picBig;
    	
    	@JsonProperty(value = "enabled")
    	private String enabled;
    	
    	@JsonProperty(value = "shelf_life")
    	private String shelfLife;
    	
    	@JsonProperty(value = "sku_tag")
    	private String skuTag;
    	
    	@JsonProperty(value = "c_id")
    	private String cId;
    	
    	@JsonProperty(value = "supplier_name")
    	private String supplierName;
    	
    	@JsonProperty(value = "sku_codes")
    	private String skuCodes;
    	
    	@JsonProperty(value = "cost_price")
    	private String costPrice;
    	
    	@JsonProperty(value = "creator")
    	private String creator;
    	
    	@JsonProperty(value = "properties_id")
    	private String propertiesId;
    	
    	@JsonProperty(value = "sku_type")
    	private String skuType;
    	
    	@JsonProperty(value = "co_id")
    	private String coId;
    	
    	@JsonProperty(value = "sale_price")
    	private String salePrice;
    	
    	@JsonProperty(value = "other_price_1")
    	private String otherPrice1;
    	
    	@JsonProperty(value = "other_price_2")
    	private String otherPrice2;
    	
    	@JsonProperty(value = "other_price_3")
    	private String otherPrice3;
    	
    	@JsonProperty(value = "other_price_4")
    	private String otherPrice4;
    	
    	@JsonProperty(value = "other_price_5")
    	private String otherPrice5;
    	
    	@JsonProperty(value = "other_1")
    	private String other1;
    	
    	@JsonProperty(value = "other_2")
    	private String other2;
    	
    	@JsonProperty(value = "other_3")
    	private String other3;
    	
    	@JsonProperty(value = "other_4")
    	private String other4;
    	
    	@JsonProperty(value = "other_5")
    	private String other5;
    	
    	@JsonProperty(value = "h")
    	private String h;
    	
    	@JsonProperty(value = "l")
    	private String l;
    	
    	@JsonProperty(value = "w")
    	private String w;
    	
    	@JsonProperty(value = "enable_productionbatch")
    	private String enableProductionbatch;
    	
    	@JsonProperty(value = "supplier_sku_id")
    	private String supplierSkuId;
    	
    	@JsonProperty(value = "creator_name")
    	private String creatorName;
    	
    	@JsonProperty(value = "category")
    	private String category;
    	
    	@JsonProperty(value = "qty")
    	private Integer qty;
    	
    }
    
}
